package top.kaoshanji.p1ch06a;

/**
 * 代码清单-p1ch06a-101页a：构造器可以有参数
 * author kaoshanji
 * ^_^
 * create time 2025/3/7 20:34
 */
public class SimpleConstructor2 {

    public static void main(String[] args) {
        for (int i = 0; i < 8; i++) {
            new Rock2(i);
        }
    }


}

class Rock2 {
    public Rock2(int i) {
        System.out.println("Rock " + i + " ");
    }
}
